package com.house.entity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @version 1.0
 * @Author OhygC
 * @since 1.0
 */
@Entity
@Table(name = "city")
@EnableJpaRepositories
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
public class City extends CommonProperties{

    @ApiModelProperty(value = "城市名",dataType = "String")
    @Column
    private String name;
}
